import Jsonp from 'jsonp'
export default class Axios{
    static jsonp(options){
        return new Promise((resolve,reject)=>{
            Jsonp(options.url,{
                param :'callback'
            },function(err,response){
                console.log(response)
                    if(response.status==='1'){
                        resolve(response)
                    }else{
                        reject(err)
                    }
            })
        })
    }
}